package day11.day12;

public class Dog extends Pet{
    protected String strain;

    public Dog(String name, int health, int love, String strain) {
        super(name, health, love);
        this.strain = strain;
    }

    @Override
    public void show() {
        super.show();
        System.out.println("宠物的品种："+this.strain);
    }
}
